@if (tag !== undefined) {
  @if (!clickable) {
    <span class="badge" [style.background]="tag.color" [style.color]="tag.text_color">{{tag.name}}</span>
  }
  @if (clickable) {
    <a [title]="linkTitle" class="badge" [style.background]="tag.color" [style.color]="tag.text_color">{{tag.name}}</a>
  }
} @else {
  @if (!clickable) {
    <span class="badge private" i18n>Private</span>
  }
  @if (clickable) {
    <a [title]="linkTitle" class="badge private" i18n>Private</a>
  }
}
